import instance from "@/utils/http"

export const sendcodeData = (phone) => {
    return instance.get('user/user/appSendCode',{
        params:{
            phone: phone
        }
    })
  }

  export const loginByUsername = (form) => {
    return instance.get('user/user/appLoginByUsername',{
        params:{
            name: form.name,
            password: form.password
        }
    })
  }


  export const loginByPhone = (form) => {
    return instance.get('user/user/appLoginByPhone',{
        params:{
            phone: form.phone,
            password: form.password
        }
    })
  }
